<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/jsp/manage/common/taglibs.jsp" %>
<assign jodd=JspTaglibs["http://www.springside.org.cn/jodd_form"] />
<div>
    <form id="manage_alarm_editform" action="/manage/lora/alarm/alarm/${action=='create'?'saveJson':'updateJson'}.html" method="post">
		<jodd:form bean="alarm" scope="request">
        <input name="id" type="hidden" />
        <table class="tableForm" width="100%">
			<tr>
				<th>字段预警状态：</th>
				<td><select name="status" editable="false" panelHeight="auto" class="easyui-combobox" style="min-width: 235px;" >
                    <c:forEach items="${allStatuss}" var="item">
                        <option value="${item.key}">${item.value}</option>
                    </c:forEach>
				</select></td>
			</tr>
            <tr>
                <th width="25%">设备编号：</th>
                <td>
                    <select name="epId" editable="false" panelHeight="auto" class="easyui-combobox" style="min-width: 235px;" >
                        <option value="${v.eid}">${v.position}</option>
                        <c:forEach items="${equipments}" var="v">
                            <option value="${v.eid}">${v.position}</option>
                        </c:forEach>
                    </select>
                </td>
            </tr>
            <%--<tr>
                <th width="25%">设备编号：</th>
                <td><input type="text" style="width: 90%;" name="epId" placeholder="请输入设备编号..." class="easyui-validatebox" data-options="validType:['length[1,32]']"/></td>
            </tr>--%>
            <tr>
                <th>字段预警配置：</th>
                <td><textarea style="width: 90%;" rows="10" placeholder="{'field':'acVoltagea','epName':'UPS','title':'交流旁路电压A','valueType':'BigDecimal','checks':[{'standard':'12.89','algorithm':'GT'},{'standard':'20','algorithm':'LT'}]}" name="alarmConfig" class="easyui-validatebox" data-options="validType:['length[1,512]']"></textarea></td>
            </tr>
        </table>
      </jodd:form>
    </form>
</div>
